package com.magicodex.bookkeeping.biz.statistic.event;

import android.app.Activity;
import android.view.View;
import android.widget.AdapterView;

import com.magicodex.bookkeeping.ui.statistic.StatisticListViewAdapter;

/**
 * @author mh.z
 */
public class StatisticItemClickListener implements AdapterView.OnItemClickListener {
    private Activity activity;
    private StatisticListViewAdapter adapter;

    public StatisticItemClickListener(Activity activity, StatisticListViewAdapter adapter) {
        this.activity = activity;
        this.adapter = adapter;
    }

    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
        // 记录最后点击的位置
        adapter.setLastClickPosition(position);
    }

}
